# -*- coding: utf-8 -*-
# @author: wch
# @file: line.py
# @time: 2023/2/7 14:22

import numpy as np
import cv2

# line(img,startpoint,endpoint,color,width,style)

img = np.zeros((480, 640, 3), np.uint8)

# 画线，坐标点位（x，y)
cv2.line(img,(10,20),(300,400),(0,0,255),5,4)
# cv2.imshow("draw",img)
# cv2.waitKey(0)

# 画矩形
cv2.rectangle(img,(10,10),(100,100),(0,0,255),-1)

# 画圆
cv2.circle(img,(320,240),100,(0,0,255),-1)
cv2.circle(img,(320,240),5,(0,0,255),-1)
cv2.imshow("draw",img)
cv2.waitKey(0)






